﻿#include <stdio.h>

//main36：多维数组
int main36(void)
{
	int arr[2][3][4] = {
		{
			{1,2,3,4},
			{2,3,4,5},
			{3,4,5,6}
		},
		{
			{4,5,6,7},
			{5,6,7,8},
			{6,7,8,9}
		}
	};

	for (int i = 0; i < 2; i++)
	{
		for (int j = 0; j < 3; j++)
		{
			for (int k = 0; k < 4; k++)
			{
				printf("1.输出三维数组的元素：%d		", arr[i][j][k]);//1.输出三维数组的元素：1 2 ... 9
			}
			printf("\n");
		}
		printf("=====================================\n");
	}

	printf("%d\n", sizeof(arr));//96
	printf("%d\n", sizeof(arr[0]));//48
	printf("%d\n", sizeof(arr[0][0]));//16
	printf("%d\n", sizeof(arr[0][0][0]));//4

	printf("%p\n", arr);//008FFB08
	printf("%p\n", arr[0]);//008FFB08
	printf("%p\n", arr[0][0]);//008FFB08
	printf("%p\n", &arr[0][0][0]);//008FFB08
	return 0;
}